﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SkyBase
{
    class Item : GameObject
    {
        public string Desc { get; set; }
        public string Type { get; set; }
        public int Range { get; set; } //self-use: range = 0   no use: range = -1
        public Color InventoryColor { get; set; }
        public GameObject parent = null;
        //private int weight;   //If we use weight system
        //private int width;    //If we use inventory grid system
        //private int height;   //If we use inventory grid system

        public Item(string item_name, string item_desc, string item_type, int item_range, Texture2D spriteIn, World worldIn)
            : base(item_name, Vector2.Zero, spriteIn, false, worldIn, 0.4f)
        {
            Name = item_name;
            Desc = item_desc;
            Type = item_type;
            Range = item_range;
            InventoryColor = Color.White;
        }

        public void Use()
        {
            //does nothing, must extend
        }
    }
}
